function register() {
    let phone = $("#phone").val();
    let upwd = $("#upwd").val();
    // console.log(phone, upwd);
    if (phone != '' && upwd != '') {
        // console.log(111)
        $.ajax({
            url: 'http://127.0.0.1:3000/register',
            type: 'post',
            data: { phone, upwd },
            success: res => {
                if (res.code == 200) {
                    alert('注册成功');
                } else {
                    alert('手机号已经存在');
                }
            }
        });
    } else {
        alert('请将信息填写完整');
    }
}